<?php

namespace app\home\controller;

use think\Controller;

use think\Input;

use think\Db;

use think\Request;

use think\Session;

class Shangpu extends Controller{
	
	
	//商铺首页
	public function index(){
	
		//查询首页轮播图
		$userInfo = db('admin')->where('admin_id<>1')->select();

		$this->assign('slider',$userInfo);

		return view();
	}
	
	
	//商铺详情页
	public function detail($admin_id=''){
		 
		$user = db('admin')->where("admin_id=".$admin_id)->find();

		$this->assign('user',$user);

  		return view();

	}

}

